﻿using System.Runtime.InteropServices;

namespace Ast.Core.Pe.Definitions
{
    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
    public struct RelocationDirectoryDescriptor
    {
        public uint VirtualAddress;

        public uint SizeOfBlock;

        public int Count
        {
            get { return (int) (SizeOfBlock - 4 - 4)/2; }
        }
    }
}